package designMode.simpleFactoryPatttern;

/**
 * @ClassName SimplePizzaFactory
 * @Description 制作披萨的简单工厂
 * @Author LIBOFEI
 * @Date 2020/6/18 22:49
 * @Version 1.0
 **/
public class SimplePizzaFactory {

    public Pizza createPizza(String type){
        Pizza pizza = null;

        if("cheese".equals(type)){
            pizza = new CheesePizza();
        }

        return pizza;
    }
}
